package com.hyts.ognl.sample;

import ognl.DefaultClassResolver;
import ognl.MemberAccess;
import ognl.OgnlContext;

import java.awt.*;
import java.beans.*;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.ognl.sample
 * author:Libo/Alex
 * create-date:2019-07-05 16:02
 * email:liboware@gmail.com
 * description:此类主要用于:
 */
public class TestBean implements BeanInfo {


    public static void main(String[] args){
       /* try {
          TestBean testBean = (TestBean) Introspector.getBeanInfo(TestBean.class);
            System.out.println(testBean);
        } catch (IntrospectionException e) {
            e.printStackTrace();
        }*/
        OgnlContext ognlContext = new OgnlContext();
        ognlContext.put("name","12312");
        System.out.println(ognlContext.get("name"));
    }

    @Override
    public BeanDescriptor getBeanDescriptor() {
        return null;
    }

    @Override
    public EventSetDescriptor[] getEventSetDescriptors() {
        return new EventSetDescriptor[0];
    }

    @Override
    public int getDefaultEventIndex() {
        return 0;
    }

    @Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        return new PropertyDescriptor[0];
    }

    @Override
    public int getDefaultPropertyIndex() {
        return 0;
    }

    @Override
    public MethodDescriptor[] getMethodDescriptors() {
        return new MethodDescriptor[0];
    }

    @Override
    public BeanInfo[] getAdditionalBeanInfo() {
        return new BeanInfo[0];
    }

    @Override
    public Image getIcon(int iconKind) {
        return null;
    }
}
